import request from '@/utils/request'

// 新增选择题题库管理
export function addSelect(data) {
    return request({
      url: '/topic/questionbank/addQuestion',
      method: 'post',
      data: data
    })
  }
  // 删除单个
export function deleQuestion(data) {
  return request({
    url:'/topic/questionbank/deleteQuestion',
    method: 'post',
    data: data
  })
  }
//删除多个
export function deleQuestions(data) {
  return request({
    url:'/topic/questionbank/deleteQuestions',
    method: 'post',
    data: data
  })
  }
   // 获取题型模板
export function getFormark(data) {
  return request({
    url:'/topic/questionbank/getFormWork',
    method: 'post',
    data: data
  })
  }
  // 修改题库
export function changeSelect(data) {
  return request({
    url: '/topic/questionbank/updateQuestion',
    method: 'post',
    data: data
  })
  }
  //根据id查找
  export function search(data) {
    return request({
      url: '/topic/questionbank/queryBankById',
      method: 'post',
      data: data
    })
  }